//
//  UIView+XMGExtension.h
//  5期-百思不得姐
//
//  Created by xiaomage on 15/11/6.
//  Copyright © 2015年 xiaomage. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (YDYExtension)
@property (nonatomic, assign) CGSize ydy_size;
@property (nonatomic, assign) CGFloat ydy_width;
@property (nonatomic, assign) CGFloat ydy_height;
@property (nonatomic, assign) CGFloat ydy_x;
@property (nonatomic, assign) CGFloat ydy_y;
@property (nonatomic, assign) CGFloat ydy_centerX;
@property (nonatomic, assign) CGFloat ydy_centerY;

@property (nonatomic, assign) CGFloat ydy_right;
@property (nonatomic, assign) CGFloat ydy_bottom;

+(instancetype)ydy_viewfromXib;
//判断2个view是不是重叠了
- (BOOL)ydy_intersectWithView:(UIView *)view;

@end
